<#include "/includes/header.ftl">
  <script>
  $(document).ready(function(){
    
    $("input").keyup(function () {
      var value = $(this).val();
      $("p").text(value);
    }).keyup();

  });
  </script>
<TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
<TR>
	<TD width="120" valign="top"><#include "/includes/leftbar.ftl"></TD>	
	<TD valign="top" width="90%">
	<#if siteDetail?has_content>
	<#-- Main Content-->
	<table width="100%" border="0">
	
  <tr><td></td>
    <th colspan="3"><A href='<@spring.url "/listmyservedstorecoupon.asp?ssid=${siteDetail.sysId}"/>'><b>管理店铺[${siteDetail.name?default("No-Name")}]的优惠券</b></A></th>
  </tr>
	
	
  <form name="edit_store_profile" action='<@spring.url "/editmyservedstorecoupon.asp"/>' method="post" onsubmit="return check_form(create_account);">
  <@spring.bind "command.site2Content.sysId" />    
  <INPUT type="hidden" name="${spring.status.expression}" value='${spring.status.value?default("")}'  />
  <INPUT type="hidden" name="s2csid" value='${s2csid?default("")}'  />
  <INPUT type="hidden" name="ssid" value='${ssid?default("")}'  />
  <tr>
    <th width="10%" nowrap="nowrap" scope="row"><div align="right">编号: </div></th>
    <td width="90%">
          <@spring.bind "command.site2Content.content.contentId" />    
          <INPUT type="text" name="${spring.status.expression}" value='${spring.status.value?default("")}' size="64" />
          <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
    </td>
    <td width="1%" rowspan="4" valign="top"><div align="left"><a href="../productdetail.html"><img src="../IMAGES/content.jpg" width="130" height="98" border="0" /></a></div></td>
  </tr>
  <tr>
    <th width="10%" nowrap="nowrap" scope="row"><div align="right">名称: </div></th>
    <td width="90%">
          <@spring.bind "command.site2Content.content.name" />    
          <INPUT type="text" name="${spring.status.expression}" value='${spring.status.value?default("")}' size="64" />
          <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
    </td>
    <td width="1%" rowspan="4" valign="top"><div align="left"><a href="../productdetail.html"><img src="../IMAGES/content.jpg" width="130" height="98" border="0" /></a></div></td>
  </tr>
  <tr>
    <th width="10%" nowrap="nowrap" scope="row"><div align="right">开始日期: </div></th>
    <td width="90%">
          <@spring.bind "command.site2Content.content.startDate" />    
          <INPUT id="startDate"  type="text"  value='<#if spring.status.value?has_content>${spring.status.value}</#if>' size="10"/>(e.g. 2007-11-08)
          <INPUT id="startDateHidden"  type="hidden" name="${spring.status.expression}" value='<#if spring.status.value?has_content>${spring.status.value}</#if>' size="10" />
          <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
    </td>
    <td width="1%" rowspan="4" valign="top"><div align="left"><a href="../productdetail.html"><img src="../IMAGES/content.jpg" width="130" height="98" border="0" /></a></div></td>
  </tr>
  <tr>
    <th width="10%" nowrap="nowrap" scope="row"><div align="right">结束日期: </div></th>
    <td width="90%">
          <@spring.bind "command.site2Content.content.endDate" />    
          <INPUT id="endDate" type="text" value='<#if spring.status.value?has_content>${spring.status.value}</#if>' size="10" />(e.g. 2007-12-28)
          <INPUT id="endDateHidden" type="hidden" name="${spring.status.expression}" value='<#if spring.status.value?has_content>${spring.status.value}</#if>' size="10" />
          <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
    </td>
    <td width="1%" rowspan="4" valign="top"><div align="left"><a href="../productdetail.html"><img src="../IMAGES/content.jpg" width="130" height="98" border="0" /></a></div></td>
  </tr>
  <tr>
    <th valign="top" nowrap="nowrap" scope="row"><div align="right">摘要: </div></th>
    <td><label>
      <div align="left">
         <@spring.bind "command.site2Content.content.shortDesc" />    
        <textarea name="${spring.status.expression}" cols="60" rows="6">${spring.status.value?default("Please input short description")}</textarea>
        </div>
    </label></td>
  </tr>
  <tr>
    <th valign="top" nowrap="nowrap" scope="row"><div align="right">详细说明: </div></th>
    <td><label>
      <div align="left">
         <@spring.bind "command.site2Content.content.longDesc" />    
        <textarea name="${spring.status.expression}" cols="60" rows="6">${spring.status.value?default("Please input detail description")}</textarea>
        </div>
    </label></td>
  </tr>

  <tr>
    <th valign="top" nowrap="nowrap" scope="row"><div align="right">小图片: </div></th>
    <td><label>
      <div align="left">
         <@spring.bind "command.site2Content.content.smallImage" />    
          <INPUT type="file" name="${spring.status.expression}" value='${spring.status.value?default("")}' size="64" />
          <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>&nbsp;
        </div>
    </label></td>
	</tr>

  <tr>
    <th valign="top" nowrap="nowrap" scope="row"><div align="right">大图片: </div></th>
    <td><label>
      <div align="left">
         <@spring.bind "command.site2Content.content.largeImage" />    
          <INPUT type="file" name="${spring.status.expression}" value='${spring.status.value?default("")}' size="64" />
          <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
        </div>
    </label></td>
  </tr>
	<tr>
    <th width="1%" nowrap="NOWRAP" scope="row" valign="top"><div align="right">状态: </div></th>
    <td>
      <@spring.bind "command.site2Content.content.status" />
      <#assign status = spring.status.value?default(1001)>
		  <INPUT type="radio" name="${spring.status.expression}" value="1001" <#if status == 1001>checked</#if>>正在编辑&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="1002" <#if status == 1002>checked</#if>>申请审批&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="1003" <#if status == 1003>checked</#if>>审批失败&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="1004" <#if status == 1004>checked</#if>>审批通过&nbsp;&nbsp;
      <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
		</td>
  </tr>

  <tr>
    <th valign="top" nowrap="nowrap" scope="row"><div align="right">说明: </div></th>
    <td><label>
      <div align="left"><font color="red">系统管理员有权批准或禁止你发布的优惠券信息上线．</font>
      <br><font color="red">状态改为"已上线"后,资料将不能修改</font>
      </div>
    </label></td>
  </tr>
    
  <tr>
    <th scope="row">&nbsp;</th>
    <td colspan="2"><label>
      <div align="left">
        <input type="submit" name="Submit" value="Save" />
        </div>
    </label></td>
  </tr>
  <tr>
    <th scope="row">&nbsp;</th>
    <td colspan="2">&nbsp;</td>
  </tr>
  </form>
</table>
	<p></p>
	<#-- /Main Content-->
	</#if>
	</TD>	
	<TD valign="top"><#include "/includes/rightbar.ftl"></TD>
</TR>
</TABLE>

<#include "/includes/footer.ftl">